<?php

$pointsimgs = $_P['pointsimgs'];
if (!empty($pointsimgs)) {
    foreach ($pointsimgs as $key => $value) {
        $pointsimgs[$key]=tomedia($value);
    }
}

$tempconfig=array(
    'fanpaigroupid' => intval($_P['fanpaigroupid']),
    'fanpaifanwei' => intval($_P['fanpaifanwei']),
    'fanpailimit' => intval($_P['fanpailimit']),
    'fanpaiweibaoming' => intval($_P['fanpaiweibaoming']),
    'fanpaibaoming' => intval($_P['fanpaibaoming']),
    'fanpaiyaoqing' => intval($_P['fanpaiyaoqing']),
    'fanpaipengyouquan' => intval($_P['fanpaipengyouquan']),
    'fanpai1day' => intval($_P['fanpai1day']),
    'fanpai2day' => intval($_P['fanpai2day']),
    'fanpai3day' => intval($_P['fanpai3day']),
    'fanpaijilu' => intval($_P['fanpaijilu']),
    'fanpai_type' => intval($_P['fanpai_type']),
    'fanpaiimg' => trim($_P['fanpaiimg']),
    'fanpaibgcolor' => trim($_P['fanpaibgcolor']),
    'lottery_mytips' => trim($_P['lottery_mytips']),
    'lottery_title' => trim($_P['lottery_title']),
    'morelottery_fenxiang' => trim($_P['morelottery_fenxiang']),
    'morelottery_zhuli' => trim($_P['morelottery_zhuli']),
    'points_isshow' => intval($_P['points_isshow']),
    'lottery_join' => intval($_P['lottery_join']),

    'lotteryview' => intval($_P['lotteryview']),//几个好友到访
    'lotterynum' => 1,//加几次抽奖机会
    'lotteryviewtype' => intval($_P['lotteryviewtype']),//设定的好友类型
    'pointsimgs'=>$pointsimgs,
    'first_buy_tips'=>tomedia($_P['first_buy_tips']),
    'points_rank_in_img'=>tomedia($_P['points_rank_in_img']),
);
$config =array_merge($config,$tempconfig);